<!-- slider -->
<div id="slider_img_title">
	<h1 class="banner-light-brown main-banner-text"><?php echo lang('home_main_slider_title',true);?> </h1>
	<h6 class="banner-brown main-banner-text"><?php echo lang('home_main_slider_subtitle',true);?></h6>
	<div class="transparent-box left">
<?php
	
	echo lang('home_main_slider_left_box',true);
?>
	</div>
	<div class="transparent-box left">
<?php
	
	echo lang('home_main_slider_center_box',true);
?>
	</div>
	<div class="transparent-box left">
<?php
	
	echo lang('home_main_slider_right_box',true);
?>
	</div>
	<div class="clear"></div>
</div>

<div id="slider">
	<?php 
		$continue = true;
		$count = 0;
		while ($continue){
			$count++;
			if (lang('home_main_slider_'.$count) == "[home_main_slider_" . $count . "]"){
				$continue = false;
				break;
			}
			echo strip_tags(lang('home_main_slider_'.$count,true),"<a>,<img>");
		}
	?>
	
</div>

<form id="get-products-filter" action=<?php echo site_url('product_list/get_list');?> method="get" style="display:none;">
	<input type="hidden" name="search-price" id="search-price" value="" />
	<input type="hidden" name="search-category" id="search-category" value="" />
	<input type="hidden" name="search-metal" id="search-metal" value="" />
	<input type="hidden" name="search-gem" id="search-gem" value="" />
</form>

<!-- middle content -->
<div id="middle-content" class="tmargin">
	<?php require_once 'filter.php';?>
	<div id="middle-center" class="left">
		<h2 class="italic" style="color:#7c6c4e;"><?php echo lang('home_page_colectia_text')?></h2>
		<?php echo lang($central_content,true)?>
		<div class="clear"></div>
	</div>
	<div id="middle-right" class="right">
		<h2 class="italic"><?php echo lang("ads_label");?></h2>
		<div id="banner-place-holder"><?php echo strip_tags(lang('home_page_banner',true),"<a>,<img>,<object>");?></div>
	</div>
	<div class="clear"></div>
</div>

<!-- bottom content -->
  
<?php $live_products = getLiveProduct(); ?>
<div class="recently-viewed rounded-corners light-brown-border">
	<div class="head  rposition"> <h4><?=lang('live')?><img style="padding-left:10px" src = "<?=IMAGES_URL.'icons/signal.png'?>"></h4> <a href="<?php echo base_url('live_view/get')?>" class="list-all"><?php echo lang('view_all')?></a> </div>
	<?php
	$i = 0;
	foreach ($live_products as $key => $value) { ?>
	<div>
		<div class="left">
			<a href="<?php echo get_product_url($value->name,$value->product_id)?>">
				<?php echo resize_image($value->url,NORMAL_IMAGE_PATH,NORMAL_IMAGE_URL,'img_thumb_width','img_thumb_height',$value->name,'detailsthumb');?>
			</a>
		</div>
		<div class="left lmargin col1">
			<h5><a href="<?php echo get_product_url($value->name,$value->product_id)?>"><?php echo $value->name?></a></h5>
			<a href="javascript:void(0)"> &raquo; <?php echo lang('diamond_size_text') ?> <?php echo $value->diamond_size_text ; ?></a>
			<a href="javascript:void(0)"> &raquo; <?php echo lang('shape') ?> <?php echo $value->shape ; ?></a>
		</div>
		<div class="left lmargin col2"style ="width: 110px">
		 <table align="center">
			<tr>
				<td>
				 <br /> <br />
					<?php echo get_prod_prices($value->product_id,$sel_currency,true); ?>
				</td>
			</tr>
		</table>
		</div>
		<div class="left lmargin col3"style ="width: 300px">
		<br />
		<table align="center">
			<tr>
				<td>
			<?php $location =  get_geolocation($value->ip);?>
			<img src = "<?=$location['imageUrl']?>" width = "25px"  heiht="25px" /> 
			<?=!empty($location['country_name'] ) ? $location['country_name'] : '' ?> 
			<?=!empty($location['region_name']) ? ', '.$location['region_name'] : ''?>
		    <?=!empty($location['city'])? ', '.$location['city'] : ''?> <br /> <br />
			
				</td>
			</tr>
			<tr>
				<td>
					 <?=$value->date?>
				</td>
			</tr>
		</table>
		</div>
		<div class="clear"></div>
	</div>
	<?php	if ($i === 0){?>
		<hr>
		<?php } $i++ ;?>
	<?php } ?>
</div>